<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../include/header.jsp" %>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
	$(document).ready(function(){
		$("#btnSearch").click(function(){
			var dong = $("#dong").val();
			if(dong.length > 0){
				var param = "dong="+dong;
				$.ajax({
					type:"post",
					url:"${path}/member/zipcodeSearch.do",
					data:param,
					success:function(msg){
						$("#div_result").html(msg);
					}
				});
			}
		});
		
	});
	function zipcode_copy(zipcode, address){
		$("#zipcode", opener.document).val(zipcode);
		$("#address1",opener.document).val(address);
		$("#address2",opener.document).focus();
		window.close();
	}
</script>
 

</head>
<body>	
	<h4>우편번호 검색 페이지</h4>
	<hr/>
	<form name="form1" id="form1" method="post"		>
		동면리를 입력하세요
		<input type="text" name="dong" id="dong" value="${map.dong}" >
		<input type="button" value="찾기" id="btnSearch" />
	</form>
	
	<div id="div_result">

	</div>
</body>
</html>